import java.util.Arrays;
import java.util.Scanner;

public class Test{
        public  static void func(int[] array1){
                array1 = new int[10];
        }
        public static void main(String[] args) {
              int[] array = {1,2,3,4,5};
              func(array);
            Scanner s = new Scanner(System.in);

                System.out.println(Arrays.toString(array));
        }

        }
